<?php
/**
 * Created by PhpStorm.
 * User: geolo
 * Date: 2018/10/8
 * Time: 15:33
 */
namespace app\models;

use Yii;
class CharacterBlock extends \yii\db\ActiveRecord
{
    public static function tableName(){
        return '{{%character_block}}';
    }
    public function rules()
    {
        return [
            [['wechat_app_id', 'name'], 'required'],
            [['wechat_app_id', 'is_delete'], 'integer'],
            [['url','name_e'], 'string'],
            [['name'], 'string', 'max' => 255],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'wechat_app_id' => 'wechat_app_id',
            'name' => 'Name',
            'name_e' => '英文名称',
            'is_delete' => 'Is Delete',
        ];
    }
}